<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<h1>首页</h1>
<a th:href="@{/hello/testRequestMapping}">测试RequestMapping注解的位置</a><br>
<a th:href="@{/hello/testRequestMapping}">testRequestMapping</a><br>
<a th:href="@{/hello/test}">test</a><br>
<form th:action="@{/hello/test}" method="get">
    <input type="submit" value="测试RequestMappingController注解的method-get属性">
</form>
<a th:href="@{/hello/testGetMapping}">testGetMapping</a><br>
<form th:action="@{/hello/test}" method="post">
    <input type="submit" value="测试RequestMappingController注解的method-post属性">
</form>
<form th:action="@{/hello/testPut}" method="post">
    <input type="submit">
</form>
<!--<a th:href="@{/hello/testParamsAndHeaders?username='admin'}">testParamsAndHeaders</a>-->
<a th:href="@{/hello/testParamsAndHeaders(username='admin',password=123456)}">testParamsAndHeaders</a><br>
<a th:href="@{/hello/aaa/testAnt}">testAnt</a><br>
<a th:href="@{/hello/testPath/1/admin}">testPath支持路径中的占位符</a><br>
<a th:href="@{/param}">param</a><br>
</body>
</html>